#define  _CRT_SECURE_NO_WARNINGS 1

#include"Stack.h"

void test()
{
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);

	int result=StackTop(&st);
	printf("%d ", result);

	StackPop(&st);
	result = StackTop(&st);
	printf("%d ", result);

	int sz = StackSize(&st);
	printf("%d ", sz);

	StackDestroy(&st);
}
int main()
{
	test();
	return 0;
}